﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'usp_UPDMS_COM_USER_MGT_Check_Exist_User_Id')
	BEGIN
		DROP Procedure usp_UPDMS_COM_USER_MGT_Check_Exist_User_Id
	END
GO

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
/******************************************************************************
**	Name : usp_UPDMS_COM_USER_MGT_Check_Exist_User_Id
**	Desc : 아이디 중복체크
**	Test Exec Query : Exec usp_UPDMS_COM_USER_MGT_Check_Exist_User_Id 'relic4160'
**	Called by : Com_Dac_UPDMS_COM_USER_MGT.cs
**	Program ID : Com1013m
**	Auth : 송시명
**	Date : 2013-06-24
*******************************************************************************
**	Change History
*******************************************************************************
**	Date:		Author:		Description:
**	--------	--------	---------------------------------------
**	
*******************************************************************************/
CREATE PROC [dbo].[usp_UPDMS_COM_USER_MGT_Check_Exist_User_Id]
@ls_user_id nvarchar(20)
AS
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SET NOCOUNT ON

SELECT COUNT(User_Id) AS Cnt
  FROM UPDMS_COM_USER_MGT AS ucum WITH(NOLOCK)
 WHERE ucum.User_Id = @ls_user_id

GO